//
//  ZDServiceCompanyCell.m
//  ZDPension
//
//  Created by 刘甲奇 on 2017/6/14.
//  Copyright © 2017年 maker. All rights reserved.
//

#import "ZDServiceCompanyCell.h"
#import "UIImageView+WebCache.h"

@interface ZDServiceCompanyCell()
@property (weak, nonatomic) IBOutlet UIImageView *icon;
@property (weak, nonatomic) IBOutlet UILabel *companyLabel;
@property (weak, nonatomic) IBOutlet UILabel *serviceLabel;

@end

@implementation ZDServiceCompanyCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (void)setModel:(ZDStoreModel *)model
{
    _model = model;
    NSString *imageUrl = [NSString stringWithFormat:@"http://58.57.98.122:81/shopnc_new/data/upload/shop/store/%@",model.store_label];
    [self.icon sd_setImageWithURL:[NSURL URLWithString:imageUrl] placeholderImage:[UIImage imageNamed:@"zwt"]];
    self.companyLabel.text = model.store_name;
    if ([model.store_zy isEqualToString:@""]) {
        self.serviceLabel.text = @"服务种类: 暂未填写";
    }else
    {
        self.serviceLabel.text = [NSString stringWithFormat:@"服务种类: %@",model.store_zy];
    }
    
}

@end










